package words;

import java.util.ArrayList;

public class Article {
	private ArrayList<Types> type;
	// some basic information about the article
	private int total_words;
	private int words;
	//private String[] origin_article
	public Article()
	{
		this.type = new ArrayList<Types>();
		this.total_words = 0;
		this.words = 0;
	}
	public Article(int total_words)
	{
		this.type = new ArrayList<Types>();
		this.total_words = total_words;
		this.words = 0;
	}
	public void addPrep(Preposition prep)
	{
		this.type.add(prep);
	}
	public void addPunt(Punctuation punt)
	{
		this.type.add(punt);
	}
	public void addQuotation(Quotation quotation)
	{
		this.type.add(quotation);
	}
	public void addAWL(AWL awl)
	{
		this.type.add(awl);
	}
	public void addNoun(Noun noun)
	{
		this.type.add(noun);
	}
	public void addNumber(NumberStat numb)
	{
		this.type.add(numb);
	}
	public Types getType(int value)
	{
		try
		{
			return this.type.get(value);
		}
		catch(Exception e)
		{
			e.printStackTrace();
			return null;
		}
	
	}
}
